/* 收货地址页面样式 */
.wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background-color: #f5f5f5;
    min-height: 100vh;
    position: relative;
}

/* 页面头部 */
header {
    background-color: #0097ff;
    height: 12vw;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4vw;
    position: relative;
}

.header-back {
    width: 8vw;
    height: 8vw;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header-back i {
    font-size: 5vw;
}

header p {
    font-size: 4vw;
    font-weight: bold;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-add {
    width: 8vw;
    height: 8vw;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header-add i {
    font-size: 4.5vw;
}

/* 地址列表 */
.address-list {
    padding: 4vw;
    padding-bottom: 20vw;
}

.address-item {
    background-color: white;
    border-radius: 2vw;
    margin-bottom: 3vw;
    padding: 4vw;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
}

.address-item.default {
    border: 2px solid #0097ff;
}

.address-info {
    flex: 1;
    margin-bottom: 3vw;
}

.address-header {
    display: flex;
    align-items: center;
    margin-bottom: 2vw;
}

.name {
    font-size: 3.5vw;
    font-weight: bold;
    color: #333;
    margin-right: 3vw;
}

.phone {
    font-size: 3vw;
    color: #666;
    margin-right: 3vw;
}

.default-tag {
    background-color: #0097ff;
    color: white;
    font-size: 2.5vw;
    padding: 1vw 2vw;
    border-radius: 3vw;
}

.address-detail {
    font-size: 3vw;
    color: #666;
    line-height: 1.4;
}

.address-actions {
    display: flex;
    justify-content: flex-end;
    gap: 2vw;
}

.default-btn {
    background-color: #f0f8ff;
    color: #0097ff;
    border: 1px solid #0097ff;
    padding: 2vw 3vw;
    border-radius: 4vw;
    font-size: 2.8vw;
    cursor: pointer;
}

.edit-btn, .delete-btn {
    width: 8vw;
    height: 8vw;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-btn {
    background-color: #f0f8ff;
    color: #0097ff;
}

.delete-btn {
    background-color: #ffe6e6;
    color: #ff4444;
}

.edit-btn i, .delete-btn i {
    font-size: 3.5vw;
}

/* 添加地址按钮 */
.add-address-btn {
    position: fixed;
    bottom: 20vw;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 360px;
}

.add-address-btn button {
    width: 100%;
    background-color: #0097ff;
    color: white;
    border: none;
    padding: 4vw;
    border-radius: 8vw;
    font-size: 3.5vw;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2vw;
}

/* 地址表单弹窗 */
.address-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
}

.address-form-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.address-form {
    background: white;
    width: 90%;
    max-width: 350px;
    border-radius: 3vw;
    max-height: 80vh;
    overflow-y: auto;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4vw;
    border-bottom: 1px solid #eee;
}

.form-header h3 {
    font-size: 4vw;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 4vw;
    color: #666;
    cursor: pointer;
    width: 6vw;
    height: 6vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-content {
    padding: 4vw;
}

.form-group {
    margin-bottom: 4vw;
}

.form-group label {
    display: block;
    font-size: 3.2vw;
    color: #333;
    margin-bottom: 2vw;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 3vw;
    border: 1px solid #ddd;
    border-radius: 2vw;
    font-size: 3.2vw;
    box-sizing: border-box;
}

.form-group textarea {
    height: 20vw;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 2vw;
}

.form-actions {
    padding: 4vw;
    border-top: 1px solid #eee;
    display: flex;
    gap: 3vw;
}

.cancel-btn, .save-btn {
    flex: 1;
    padding: 3vw;
    border-radius: 6vw;
    font-size: 3.5vw;
    cursor: pointer;
}

.cancel-btn {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.save-btn {
    background-color: #0097ff;
    color: white;
    border: none;
}

/* 底部菜单 */
.footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    height: 15vw;
    background-color: white;
    display: flex;
    border-top: 1px solid #eee;
}

.footer li {
    flex: 1;
    text-align: center;
    padding-top: 2vw;
    cursor: pointer;
}

.footer li i {
    font-size: 5vw;
    color: #666;
}

.footer li p {
    font-size: 2.5vw;
    color: #666;
    margin-top: 1vw;
}

.footer li:hover i,
.footer li:hover p {
    color: #0097ff;
}

/* 响应式调整 */
@media (max-width: 320px) {
    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }
    
    .form-group label {
        font-size: 14px;
    }
} 